﻿Imports CupsApp.Data
Imports System.Data.Linq

Public Class MockClientRepository
    Inherits MockRepository(Of cups_Client)

    Public Sub New()
        Init()
    End Sub

    Sub Init()
        AddTable()
        Dim c1 As cups_Client = New cups_Client()
        c1.ID = 0
        c1.FirstName = "FirstName1"
        c1.LastName = "LastName1"
        c1.Active = "True"
        Dim statusList As EntitySet(Of cups_ClientStatus) = New EntitySet(Of cups_ClientStatus)
        Dim status As New cups_ClientStatus
        status.ID = 0
        statusList.Add(status)

        c1.cups_ClientStatus = statusList


        Dim c2 As cups_Client = New cups_Client()
        c2.ID = 1
        c2.FirstName = "FirstName2"
        c2.LastName = "LastName2"
        c2.Active = True

        Dim c3 As cups_Client = New cups_Client()
        c3.ID = 2
        c3.FirstName = "FirstName3"
        c3.LastName = "LastName3"
        c3.Active = True

        Dim c4 As cups_Client = New cups_Client()
        c4.ID = 3
        c4.FirstName = "FirstName1"
        c4.LastName = "LastName4"
        c4.Active = True

        Table.Add(c1)
        Table.Add(c2)
        Table.Add(c3)
        Table.Add(c4)

    End Sub
End Class
